USE [simulasyon]
GO

/****** Object:  View [dbo].[Rapor_Filteli_Tumu]    Script Date: 04/24/2011 18:44:08 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE VIEW [dbo].[Rapor_Filteli_Tumu]
AS
SELECT     TOP (100) PERCENT dbo.Calisma.Id AS CalismaId, dbo.Calisma.UrunAgaciTipi, dbo.Calisma.SiralamaKurali, dbo.Calisma.IsEmriAraligi, dbo.Calisma.KDegeri, 
                      dbo.Calisma.CalismaNo, dbo.Rapor_FiltreliSiparisAdet.SiparisAdedi AS SiparisAdediFiltreli, dbo.Rapor_BitenSiparisAdediFiltreli.BitenAdet AS BitenSiparisAdetFiltreli, 
                      dbo.Rapor_ErkenTeslimAdetSimSonTarihFiltreli.ErkenTeslimSiparisAdetFiltreli, 
                      dbo.Rapor_ErkenTeslimOrtalamaDakikaSimSontarihFiltreli.ErkenTeslimOrtalamaDakikaSimSontarihFiltreli, 
                      dbo.Rapor_GecTeslimAdetSimSonTarihFiltreli.GecTeslimSiparisAdetFiltreli, 
                      dbo.Rapor_GecTeslimOrtalamaDakikaSimSontarihFiltreli.GecTeslimOrtalamaDakikaSimSontarihFiltreli, 
                      dbo.Rapor_OrtalamaSiparisTedarikSaat.OrtalamaSiparisTedarikSaat, dbo.Rapor_OrtalamaAkisZamaniSaat.OrtalamaSiparisAkisSaat, 
                      dbo.Rapor_MakKulOraniImalat.MakineKulOrani AS MakineKulOraniImalat, dbo.Rapor_MakKulOraniMontaj.MakineKulOrani AS MakineKulOraniMontaj, 
                      dbo.Rapor_MakKulOrani.MakineKulOrani, dbo.Rapor_OrtalamaKuyrukFiltreli.OrtalamaWIPDakikaFiltreli, 
                      dbo.Rapor_OrtalamaKuyrukFiltreli.OrtalamaKuyrukUzunlukDakikaFiltreli, dbo.Rapor_OrtalamaKuyrukFiltreli.OrtalamaKuyrukAdediFiltreli
FROM         dbo.Calisma LEFT OUTER JOIN
                      dbo.Rapor_OrtalamaKuyrukFiltreli ON dbo.Calisma.Id = dbo.Rapor_OrtalamaKuyrukFiltreli.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_OrtalamaKuyruk ON dbo.Calisma.Id = dbo.Rapor_OrtalamaKuyruk.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_BitenSiparisAdediFiltreli ON dbo.Calisma.Id = dbo.Rapor_BitenSiparisAdediFiltreli.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_MakKulOraniMontaj ON dbo.Calisma.Id = dbo.Rapor_MakKulOraniMontaj.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_MakKulOraniImalat ON dbo.Calisma.Id = dbo.Rapor_MakKulOraniImalat.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_MakKulOrani ON dbo.Calisma.Id = dbo.Rapor_MakKulOrani.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_OrtalamaAkisZamaniSaat ON dbo.Calisma.Id = dbo.Rapor_OrtalamaAkisZamaniSaat.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_OrtalamaSiparisTedarikSaat ON dbo.Calisma.Id = dbo.Rapor_OrtalamaSiparisTedarikSaat.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_ErkenBitisOrtalamaDakikaCizSim ON dbo.Calisma.Id = dbo.Rapor_ErkenBitisOrtalamaDakikaCizSim.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_ToplamSiparisAdedi ON dbo.Calisma.Id = dbo.Rapor_ToplamSiparisAdedi.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_GecTeslimOrtalamaDakikaSimSontarihFiltreli ON dbo.Calisma.Id = dbo.Rapor_GecTeslimOrtalamaDakikaSimSontarihFiltreli.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_GecTeslimOrtalamaDakikaSimSonTarih ON dbo.Calisma.Id = dbo.Rapor_GecTeslimOrtalamaDakikaSimSonTarih.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_GecBitisOrtalamaDakikaCizSimFiltreli ON dbo.Calisma.Id = dbo.Rapor_GecBitisOrtalamaDakikaCizSimFiltreli.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_GecBitisOrtalamaDakikaCizSim ON dbo.Calisma.Id = dbo.Rapor_GecBitisOrtalamaDakikaCizSim.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_ErkenTeslimOrtalamaDakikaSimSontarihFiltreli ON 
                      dbo.Calisma.Id = dbo.Rapor_ErkenTeslimOrtalamaDakikaSimSontarihFiltreli.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_ErkenTeslimOrtalamaDakikaSimSonTarih ON dbo.Calisma.Id = dbo.Rapor_ErkenTeslimOrtalamaDakikaSimSonTarih.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_ErkenBitisOrtalamaDakikaCizSimFiltreli ON dbo.Calisma.Id = dbo.Rapor_ErkenBitisOrtalamaDakikaCizSimFiltreli.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_GecTeslimAdetSimSonTarih ON dbo.Calisma.Id = dbo.Rapor_GecTeslimAdetSimSonTarih.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_GecTeslimAdetSimSonTarihFiltreli ON dbo.Calisma.Id = dbo.Rapor_GecTeslimAdetSimSonTarihFiltreli.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_GecBitisAdetCizSimFiltreli ON dbo.Calisma.Id = dbo.Rapor_GecBitisAdetCizSimFiltreli.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_GecBitisAdetCizSim ON dbo.Calisma.Id = dbo.Rapor_GecBitisAdetCizSim.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_ErkenTeslimAdetSimSonTarihFiltreli ON dbo.Calisma.Id = dbo.Rapor_ErkenTeslimAdetSimSonTarihFiltreli.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_ErkenBitisAdetCizSimFiltreli ON dbo.Calisma.Id = dbo.Rapor_ErkenBitisAdetCizSimFiltreli.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_ErkenTeslimAdetSimSonTarih ON dbo.Calisma.Id = dbo.Rapor_ErkenTeslimAdetSimSonTarih.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_ErkenBitisAdetCizSim ON dbo.Calisma.Id = dbo.Rapor_ErkenBitisAdetCizSim.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_BitenSiparisAdediTumu ON dbo.Calisma.Id = dbo.Rapor_BitenSiparisAdediTumu.CalismaId LEFT OUTER JOIN
                      dbo.Rapor_FiltreliSiparisAdet ON dbo.Calisma.Id = dbo.Rapor_FiltreliSiparisAdet.CalismaId
ORDER BY CalismaId

GO

EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[41] 4[32] 2[23] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "Calisma"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 114
               Right = 189
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_OrtalamaKuyrukFiltreli"
            Begin Extent = 
               Top = 6
               Left = 227
               Bottom = 114
               Right = 480
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_OrtalamaKuyruk"
            Begin Extent = 
               Top = 6
               Left = 518
               Bottom = 114
               Right = 743
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_BitenSiparisAdediFiltreli"
            Begin Extent = 
               Top = 6
               Left = 781
               Bottom = 84
               Right = 932
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_MakKulOraniMontaj"
            Begin Extent = 
               Top = 6
               Left = 970
               Bottom = 84
               Right = 1123
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_MakKulOraniImalat"
            Begin Extent = 
               Top = 6
               Left = 1161
               Bottom = 84
               Right = 1314
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_MakKulOrani"
            Begin Extent = 
               Top = 6
               Left = 1352
            ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'Rapor_Filteli_Tumu'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'   Bottom = 84
               Right = 1505
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_OrtalamaAkisZamaniSaat"
            Begin Extent = 
               Top = 84
               Left = 781
               Bottom = 162
               Right = 977
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_OrtalamaSiparisTedarikSaat"
            Begin Extent = 
               Top = 84
               Left = 1015
               Bottom = 162
               Right = 1227
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_ErkenBitisOrtalamaDakikaCizSim"
            Begin Extent = 
               Top = 84
               Left = 1265
               Bottom = 162
               Right = 1496
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_ToplamSiparisAdedi"
            Begin Extent = 
               Top = 114
               Left = 38
               Bottom = 192
               Right = 189
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_GecTeslimOrtalamaDakikaSimSontarihFiltreli"
            Begin Extent = 
               Top = 114
               Left = 227
               Bottom = 192
               Right = 513
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_GecTeslimOrtalamaDakikaSimSonTarih"
            Begin Extent = 
               Top = 162
               Left = 551
               Bottom = 240
               Right = 809
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_GecBitisOrtalamaDakikaCizSimFiltreli"
            Begin Extent = 
               Top = 162
               Left = 847
               Bottom = 240
               Right = 1097
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_GecBitisOrtalamaDakikaCizSim"
            Begin Extent = 
               Top = 162
               Left = 1135
               Bottom = 240
               Right = 1357
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_ErkenTeslimOrtalamaDakikaSimSontarihFiltreli"
            Begin Extent = 
               Top = 192
               Left = 38
               Bottom = 270
               Right = 333
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_ErkenTeslimOrtalamaDakikaSimSonTarih"
            Begin Extent = 
               Top = 240
               Left = 371
               Bottom = 318
               Right = 638
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_ErkenBitisOrtalamaDakikaCizSimFiltreli"
            Begin Extent = 
               Top = 240
               Left = 676
               Bottom = 318
               Right = 935
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_GecTeslimAdetSimSonTarih"
            Begin Extent = 
               Top = 162
               Left = 1395
               Bottom = 240
               Right = 1576
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_GecTeslimAdetSimSonTarihFiltreli"
            Begin Exten' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'Rapor_Filteli_Tumu'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane3', @value=N't = 
               Top = 240
               Left = 973
               Bottom = 318
               Right = 1182
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_GecBitisAdetCizSimFiltreli"
            Begin Extent = 
               Top = 240
               Left = 1220
               Bottom = 318
               Right = 1424
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_GecBitisAdetCizSim"
            Begin Extent = 
               Top = 270
               Left = 38
               Bottom = 348
               Right = 214
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_ErkenTeslimAdetSimSonTarihFiltreli"
            Begin Extent = 
               Top = 318
               Left = 252
               Bottom = 396
               Right = 470
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_ErkenBitisAdetCizSimFiltreli"
            Begin Extent = 
               Top = 318
               Left = 508
               Bottom = 396
               Right = 721
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_ErkenTeslimAdetSimSonTarih"
            Begin Extent = 
               Top = 318
               Left = 759
               Bottom = 396
               Right = 949
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_ErkenBitisAdetCizSim"
            Begin Extent = 
               Top = 318
               Left = 987
               Bottom = 396
               Right = 1172
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_BitenSiparisAdediTumu"
            Begin Extent = 
               Top = 240
               Left = 1462
               Bottom = 318
               Right = 1613
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Rapor_FiltreliSiparisAdet"
            Begin Extent = 
               Top = 318
               Left = 1210
               Bottom = 396
               Right = 1361
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 2460
         Alias = 2460
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'Rapor_Filteli_Tumu'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=3 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'Rapor_Filteli_Tumu'
GO

